/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class Barometer {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '020010006';
    }

    get categoryName() {
        return '\u6c14\u538b\u8ba1';
    }

    getAlarmReminderSwitch(params) {
        return command({
            method: 'getAlarmReminderSwitch',
            methodId: 'pgwrIUOb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmSwitch(params) {
        return command({
            method: 'getAlarmSwitch',
            methodId: 'pGseXQg3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmType(params) {
        return command({
            method: 'getAlarmType',
            methodId: 'ptuukAEk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmValue(params) {
        return command({
            method: 'getAlarmValue',
            methodId: 'pDjTnhNx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPressure(params) {
        return command({
            method: 'getPressure',
            methodId: 'p1bDlBYG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pZKCf6pV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmRange(params) {
        return command({
            method: 'setAlarmRange',
            methodId: 'pUXSyeLS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmSwitch(params) {
        return command({
            method: 'setAlarmSwitch',
            methodId: 'ppOcvgbL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pex0JzWZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default Barometer;
